package com.ziyun.pop.common.e.order;

import com.ziyun.pop.common.e.BaseEnum;

/**
 * @author gaosheng
 * @date 2018-09-26 11:27
 */
public enum OnCreditEnum implements BaseEnum{

    NO_CREDIT(0, "不挂账"),
    ON_CREDIT(1, "挂账"),

    ;

    private int id;
    private String describe;

    OnCreditEnum(int id, String describe) {
        this.id = id;
        this.describe = describe;
    }

    @Override
    public int toInt() {
        return id;
    }

    @Override
    public String toCode() {
        return null;
    }

    @Override
    public String toDescribe() {
        return describe;
    }

}
